/**
 * Created with  SublimeText
 * @Author:      Lyle
 * @DateTime:    2017-03-08 14:56:58
 * @Description: 
 */

import lodash from 'lodash'
import unit from './plugins/unit'
import strophe from 'strophe'

let config = {

    API_URL: ApiUrl,

    PRE_PAGE: '',
    CUR_PAGE: '',
    CHAT_ROOM: true,

    //Index
    PAGE_INDEX: {

        home: 1,
        login: 2,
        activateAccount: 3,
        resetPassword: 3,
        registerOne: 2,
        registerTwo: 3,
        registerThree: 4,
        forgotPassword: 4,
        agreeServicePrivacy: 5,
        completeProfile: 6,
        completeProfileTwo: 7,

        /****/
        browse: 21,
        filter: 22,
        location: 23,
        discover: 21,
        connections: 21,
        me: 21,
        upgrade: 25,
        editProfile: 22,
        editHeadline: 22,
        editAboutme: 22,
        editAboutMyMatch: 22,
        editAboutMyFirstDateIdea: 22,
        editAboutRelationshipStatus: 22,
        editAboutLookfor: 22,
        editProfileDetail: 22,
        verifyProfile: 22,
        uploadPhoto: 22,
        setting: 22,
        faq: 23,
        requestedMyPhoto: 23,
        whoHasAccess: 23,
        publicAlbum: 22,
        photoPrivacy: 23,
        privateAlbum: 22,
        uploadPhoto: 23,
        chat: 21,
        chatroomMembers: 22,
        message: 22,
        message: 23,
        userProfile: 22,
        reportUser: 23,
        privacy: 23,
        deleteProfile: 24,
        changeEmail: 23,
        changePassword: 23,
        privateAlbumRequests: 23,
        blockedMembers: 23,
        about: 23,
        letsMeet: 21,
        spark: 22,

        /****/
        notFoundComponent: 30,

        /****/
        serviceAgreement: 31,
        feedback: 31,
        privacyPolicy: 31,

    },

    PAGE_NO_ACCESS: [
        'home',
        'login',
        'activateAccount',
        'resetPassword',
        'registerOne',
        'registerTwo',
        'registerThree',
        'forgotPassword',
        'feedback',
        'serviceAgreement',
        'privacyPolicy',
    ],

    PAGE_CHECK_PROFILE: [
        'chat',
        'browse',
        'discover',
        'connections',
    ],

    CHATROOM: false,

}

global.Config = config;
global._ = lodash;
global.Unit = unit;
global.StropheLib = strophe;
global.ChatObj = null;
global.ArchiveMessageHistory = {};
